package com.bxg.tliaswebmanagement.service.impl;
import com.bxg.tliaswebmanagement.entity.Dept;
import com.bxg.tliaswebmanagement.mapper.DeptMapper;
import com.bxg.tliaswebmanagement.service.DeptService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author BXG
 * @date 3/17/2025 6:37 下午
 */
@Slf4j
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;

    /**
     * 查询全部实现类
     * @return
     */
    @Override
    public List<Dept> list(){

        List<Dept> depts = deptMapper.list();
        return depts;
    }
}
